98f865d09cbbf8846d21a75b92a5b1c3dab2f4c0,ui-designer/impl/com/intellij/uiDesigner/designSurface/GlassLayer.java,GlassLayer,GlassLayer,#GuiEditor#,19

Before Change


  private final GuiEditor myEditor;

  public GlassLayer(final GuiEditor editor){
    myEditor = editor;
    enableEvents(AWTEvent.KEY_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_MOTION_EVENT_MASK);

    final MoveSelectionToRightAction moveSelectionToRightAction = new MoveSelectionToRightAction(myEditor);
    moveSelectionToRightAction.registerCustomShortcutSet(
      ActionManager.getInstance().getAction(IdeActions.ACTION_EDITOR_MOVE_CARET_RIGHT).getShortcutSet(),
      this
    );

    final MoveSelectionToLeftAction moveSelectionToLeftAction = new MoveSelectionToLeftAction(myEditor);
    moveSelectionToLeftAction.registerCustomShortcutSet(

After Change


  private final GuiEditor myEditor;

  public GlassLayer(final GuiEditor editor){
    myEditor = editor;
    enableEvents(AWTEvent.KEY_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_MOTION_EVENT_MASK);

    registerKeyboardAction(new MoveSelectionToRightAction(myEditor, false), IdeActions.ACTION_EDITOR_MOVE_CARET_RIGHT);
    registerKeyboardAction(new MoveSelectionToLeftAction(myEditor, false), IdeActions.ACTION_EDITOR_MOVE_CARET_LEFT);
    registerKeyboardAction(new MoveSelectionToUpAction(myEditor, false), IdeActions.ACTION_EDITOR_MOVE_CARET_UP);
    registerKeyboardAction(new MoveSelectionToDownAction(myEditor, false), IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN);

    registerKeyboardAction(new MoveSelectionToRightAction(myEditor, true), "EditorRightWithSelection");
    registerKeyboardAction(new MoveSelectionToLeftAction(myEditor, true), "EditorLeftWithSelection");
    registerKeyboardAction(new MoveSelectionToUpAction(myEditor, true), "EditorUpWithSelection");
    registerKeyboardAction(new MoveSelectionToDownAction(myEditor, true), "EditorDownWithSelection");

    // F2 should start inplace editing